package com.zwt.service.impl;

import com.zwt.bean.SysResource;
import com.zwt.bean.SysResourceExample;
import com.zwt.dao.SysResourceMapper;
import com.zwt.service.SysResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zwt on 2018/6/6.
 */
@Service
public class SysResourceServiceImpl implements SysResourceService {

    @Autowired
    private SysResourceMapper sysResourceMapper;

    @Override
    public List<SysResource> queryAll() {
        SysResourceExample sysResourceExample = new SysResourceExample();
        SysResourceExample.Criteria criteria = sysResourceExample.createCriteria();
        List<SysResource> sysResources = sysResourceMapper.selectByExample(sysResourceExample);
        return sysResources;
    }
}
